﻿<%@ Page Title="" Language="C#" MasterPageFile="~/_BackEnd.Master" AutoEventWireup="true" CodeBehind="EditNews.aspx.cs" Inherits="Baopx.BackEnd.ManagePage.EditNews" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            $('.desc,.content').click(function (e) {
                $('.news-content').toggle();
                $('.news-desc').toggle();
                $('.desc').toggle();
                $('.content').toggle();
                e.preventDefault();
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cplMain" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
            Category
            </td>
            <td style='width:10px;'></td>
            <td><asp:DropDownList ID="cboCategory" runat="server"></asp:DropDownList></td>
        </tr>
        <tr>
            <td>Title</td>
            <td style='width:10px;'></td>
            <td>
                <asp:TextBox runat="server" ID="txtTitle" Width="300px" /></td>
        </tr>
        <tr>
            <td valign="top">Description</td>
            <td style='width:10px;'></td>
            <td>
                <a href="#" class='desc'>Edit</a>
                <telerik:RadEditor ID="txtDescription" runat="server" CssClass='news-desc' Width="800px" style='display:none'>
                    <DocumentManager UploadPaths="~/Upload/News/Document" ViewPaths="~/Upload/News/Document" MaxUploadFileSize="50000000" DeletePaths="~/Upload/News/Document" />
                    <ImageManager UploadPaths="~/Upload/News/Images" ViewPaths="~/Upload/News/Images" DeletePaths="~/Upload/News/Images" MaxUploadFileSize="5000000" />
                    <MediaManager UploadPaths="~/Upload/News/Media" ViewPaths="~/Upload/News/Media" MaxUploadFileSize="100000000" DeletePaths="~/Upload/News/Media" />
                    <TemplateManager DeletePaths="~/Upload/News/Template" UploadPaths="~/Upload/News/Template" ViewPaths="~/Upload/News/Template" />
                </telerik:RadEditor>
            </td>
        </tr>
        <tr>
            <td valign="top">Content</td>
            <td style='width:10px;'></td>
            <td>
                <a href="#" class='content' style='display:none'>Edit</a>
                <telerik:RadEditor ID="txtContent" Runat="server"  Width="800px" CssClass='news-content'>
                    <DocumentManager UploadPaths="~/Upload/News/Document" ViewPaths="~/Upload/News/Document" MaxUploadFileSize="50000000" DeletePaths="~/Upload/News/Document" />
                    <ImageManager UploadPaths="~/Upload/News/Images" ViewPaths="~/Upload/News/Images" DeletePaths="~/Upload/News/Images" MaxUploadFileSize="5000000" />
                    <MediaManager UploadPaths="~/Upload/News/Media" ViewPaths="~/Upload/News/Media" MaxUploadFileSize="100000000" DeletePaths="~/Upload/News/Media" />
                    <TemplateManager DeletePaths="~/Upload/News/Template" UploadPaths="~/Upload/News/Template" ViewPaths="~/Upload/News/Template" />
                </telerik:RadEditor>
            </td>
        </tr>
        <tr>
            <td></td>
            <td style='width:10px;'></td>
            <td>
                <asp:Button Text="Insert" ID="btnInsertOrUpdate" runat="server"
                    onclick="btnInsertOrUpdate_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
